$icon-success: #00dd88;
$icon-error: #dd2222;
$icon-info: #0099dd;
$icon-warn: #f06b00;
$shadow-color: #e5e5e5;

.message-wrapper {
  width: 100%;
  height: 100%;

  .message-inner {
    height: 15px;
    min-width: 300px;
    padding: 20px 0;
    line-height: 0.5;
    box-shadow: 0px 2px 5px $shadow-color;
    background-color: #fff;
    z-index: 100;
    border-radius: 3px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: hidden;

    .icon {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 9999;
      &.message-icon {
        height: 40px;
        width: 40px;
        text-align: center;
        line-height: 40px;
        background-color: #fff;
        color: #666;
      }

      @mixin designIcon($bgColor) {
        color: #fff;
        background-color: $bgColor;
      }

      &.message-icon-success {
        @include designIcon($icon-success);
      }
      &.message-icon-error {
        @include designIcon($icon-error);
      }
      &.message-icon-warn {
        @include designIcon($icon-warn);
      }
      &.message-icon-info {
        @include designIcon($icon-info);
      }
    }

    .message-tip-img {
      position: absolute;
      top: 50%;
      left: 5px;
      transform: translateY(-50%);
    }

    .message-content {
      color: #666;
      font-size: 16px;
      position: absolute;
      left: 15%;
      top: 0;
      line-height: 40px;
    }

    .close-message-tag {
      height: 40px;
      width: 40px;
      line-height: 40px;
      font-size: 18px;
      text-align: center;
      position: absolute;
      cursor: pointer;
      top: 0;
      right: 0;
      border: 1px solid $icon-info;
      color: $icon-info;
      &.success-tag {
        border: 1px solid $icon-success;
        color: $icon-success;
      }
      &.error-tag {
        border: 1px solid $icon-error;
        color: $icon-error;
      }
      &.warn-tag {
        border: 1px solid $icon-warn;
        color: $icon-warn;
      }
    }
  }
}
